package org.example.persistence.model;

public class InnerThread implements Runnable {
    private int innerThreadIndex;
    private int innerTaskIndex;
    private int innerTaskCount;

    public InnerThread(int innerThreadIndex, int innerTaskIndex, int innerTaskCount) {
        this.innerThreadIndex = innerThreadIndex;
        this.innerTaskIndex = innerTaskIndex;
        this.innerTaskCount = innerTaskCount;
    }

    @Override
    public void run() {
        for (int i = innerTaskIndex; i < innerTaskIndex + 2; i++) {
            System.out.println("Thread " + Thread.currentThread().getId() + " running inner thread task " + i + " on " + innerThreadIndex);
        }
    }
}
